package com.hilon.foundation.simplest;

import com.hilon.foundation.base.EntityBaseId;
import jakarta.persistence.Entity;
import jakarta.persistence.Inheritance;
import jakarta.persistence.InheritanceType;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class EntityBaseSimplest extends EntityBaseId {
    private String no;
    private String name;
    private String baseDescribe;

    @Override
    public String toString() {
        return "EntityBaseSimplest{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", baseDescribe='" + baseDescribe + '\'' +
                "} " + super.toString();
    }
}
